<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.15"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>SkyGameEngine2d: SkyEngine2d::TextureCache类 参考</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="shpe.png"/></td>
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">SkyGameEngine2d
   &#160;<span id="projectnumber">0.2</span>
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.8.15 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'搜索');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','搜索');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><b>SkyEngine2d</b></li><li class="navelem"><a class="el" href="class_sky_engine2d_1_1_texture_cache.html">TextureCache</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public 成员函数</a> &#124;
<a href="class_sky_engine2d_1_1_texture_cache-members.html">所有成员列表</a>  </div>
  <div class="headertitle">
<div class="title">SkyEngine2d::TextureCache类 参考</div>  </div>
</div><!--header-->
<div class="contents">

<p>2D纹理缓存  
 <a href="class_sky_engine2d_1_1_texture_cache.html#details">更多...</a></p>

<p><code>#include &lt;<a class="el" href="_texture_cache_8h_source.html">TextureCache.h</a>&gt;</code></p>
<div class="dynheader">
类 SkyEngine2d::TextureCache 继承关系图:</div>
<div class="dyncontent">
 <div class="center">
  <img src="class_sky_engine2d_1_1_texture_cache.png" usemap="#SkyEngine2d::TextureCache_map" alt=""/>
  <map id="SkyEngine2d::TextureCache_map" name="SkyEngine2d::TextureCache_map">
<area href="class_sky_engine2d_1_1_non_copyable.html" title="不可拷贝对象的基类" alt="SkyEngine2d::NonCopyable" shape="rect" coords="0,0,171,24"/>
  </map>
</div></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public 成员函数</h2></td></tr>
<tr class="memitem:a9b8979fdb409bff9818957cd5296f635"><td class="memItemLeft" align="right" valign="top"><a id="a9b8979fdb409bff9818957cd5296f635"></a>
&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_sky_engine2d_1_1_texture_cache.html#a9b8979fdb409bff9818957cd5296f635">TextureCache</a> ()</td></tr>
<tr class="memdesc:a9b8979fdb409bff9818957cd5296f635"><td class="mdescLeft">&#160;</td><td class="mdescRight">构造 <br /></td></tr>
<tr class="separator:a9b8979fdb409bff9818957cd5296f635"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a607469c5eaa0e64fe57c07d921b99cee"><td class="memItemLeft" align="right" valign="top"><a id="a607469c5eaa0e64fe57c07d921b99cee"></a>
&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_sky_engine2d_1_1_texture_cache.html#a607469c5eaa0e64fe57c07d921b99cee">~TextureCache</a> ()</td></tr>
<tr class="memdesc:a607469c5eaa0e64fe57c07d921b99cee"><td class="mdescLeft">&#160;</td><td class="mdescRight">析构 <br /></td></tr>
<tr class="separator:a607469c5eaa0e64fe57c07d921b99cee"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7b21ec2c58b4f80797f81afadbf4e9b9"><td class="memItemLeft" align="right" valign="top">std::shared_ptr&lt; <a class="el" href="class_sky_engine2d_1_1_texture2_d.html">Texture2D</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_sky_engine2d_1_1_texture_cache.html#a7b21ec2c58b4f80797f81afadbf4e9b9">addImage</a> (std::wstring file)</td></tr>
<tr class="memdesc:a7b21ec2c58b4f80797f81afadbf4e9b9"><td class="mdescLeft">&#160;</td><td class="mdescRight">添加纹理图片到缓存，然后返回2D纹理  <a href="#a7b21ec2c58b4f80797f81afadbf4e9b9">更多...</a><br /></td></tr>
<tr class="separator:a7b21ec2c58b4f80797f81afadbf4e9b9"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">详细描述</h2>
<div class="textblock"><p>2D纹理缓存 </p>
</div><h2 class="groupheader">成员函数说明</h2>
<a id="a7b21ec2c58b4f80797f81afadbf4e9b9"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a7b21ec2c58b4f80797f81afadbf4e9b9">&#9670;&nbsp;</a></span>addImage()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">std::shared_ptr&lt;<a class="el" href="class_sky_engine2d_1_1_texture2_d.html">Texture2D</a>&gt; SkyEngine2d::TextureCache::addImage </td>
          <td>(</td>
          <td class="paramtype">std::wstring&#160;</td>
          <td class="paramname"><em>file</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>添加纹理图片到缓存，然后返回2D纹理 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">std::wstring</td><td>file 图片路径 </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>std::shared_ptr&lt;Texture2D&gt; </dd></dl>
<dl class="section note"><dt>注解</dt><dd>如果图片已经存在缓存中，那么会直接返回缓存中的2d纹理 </dd></dl>

</div>
</div>
<hr/>该类的文档由以下文件生成:<ul>
<li>C:/code/SkyGameEngine2d/src/render/<a class="el" href="_texture_cache_8h_source.html">TextureCache.h</a></li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
制作者 &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.15
</small></address>
</body>
</html>
